
package ch.raph.test.mvc.model;

public class Model extends AbstractModel<Double>
    {
    
    /*------------------------------------------------------------------
    constructors
    ------------------------------------------------------------------*/  
    public Model()
        {
        m_data = new Double(0.0);
        }
    
    /*------------------------------------------------------------------
    methods public
    ------------------------------------------------------------------*/
    @Override
    public void reset()
        {
        double temp = m_data;
        m_data = 0.0;
        this.notifyObserver(temp, m_data);
        }
    
    @Override
    public Double getData()
        {
        return m_data;
        }
    
    @Override
    public void setData(Double data)
        {
        double temp = m_data;
        m_data = data;
        this.notifyObserver(temp, m_data);
        }
    
    }
